package com.zhenmaitang.clinic_sys.service;

import com.zhenmaitang.clinic_sys.entity.Role;
import java.util.List;

public interface RoleService {
    List<Role> getAllRoles();
    Role getRoleById(Integer id);

    Role getRoleByName(String name);

    Role createRole(Role role);

    Role updateRole(Role role);

    void deleteRole(Integer id);
    List<Role> getRolesByUserId(Integer userId);
}